package AngryBird;

public abstract class Bird {
	//鸟叫的方式
	ShoutAbility shout_ability;
	
	//鸟类构造方法,用来初始化鸟叫的行为
	public void Brid(ShoutAbility shout_ability){
		this.shout_ability = shout_ability;
		
	}
	
	//叫
	public void shout(){
		shout_ability.shout();
		
	}
	
	public void fly(){
		System.out.println("弹射飞");
	}
	
	public abstract void attack();
	

}
